<?php
//echo $javascript->link('jquery');
echo $html->css ( 'jquery-validate/css/screen' );
?> 
<script type="text/javascript">

//添加验证
$(document).ready(function() {
	$.validator.setDefaults({       
		 submitHandler: function(form) {    
		  form.submit();    
		}       
	});   
			
	$(".u").validate({
		rules: {
			name:{
			required: true,string:true,stringMinLength:0,stringMaxLength:200
			}
		},
		messages:{maxitem:{required: "请输入"}},
		focusInvalid:false,
		onkeyup:false,
		errorPlacement:function(error, element){error.appendTo(element.parent());}
	});
});
//验证结束

$(function(){
	$(".sub").click(function(){
		$(".u").submit(); 
	});
});
</script>
<div id="tabmenubar">
<table width="100%" border="0" cellpadding="0" cellspacing="0">
	<tr>
		<td class="tabmenubartitle1"><?php echo  __('YourPosition');//您现在的位置：?></td>
		<td class="tabmenubartitle2"><?php echo __('Channelmanage');//二级目录
										   echo '>';echo __('ChannelmanageType');//三级级目录（可选）
										   echo '>';?>
									<?php echo $html->tag('span', __('Edit',true).__('ChannelmanageType',true));//当前操作地用span加粗?> 
	</tr>
</table>
</div>
<div class="tabflex">
<form action="<?php echo ROOT_WEB_PATH; ?>/channelmanages/updatechanneltype" method="post" class="u">
	<fieldset>
 		<legend><?php __('Edit').__('ChannelmanageType');?></legend>
 	<table width="100%" cellspacing="0" cellpadding="0" border="0" style="text-align: left;font-size:12px;">
			<tr>
			<td><input type="hidden" name="id" value="<?php echo $data['Channeltype']['id'];?>"></input></td>
			</tr>
			<tr>
				<td width="50"></td>
				<td width="100"><?php __('ChannelmanageType');?>:</td>
				<td colspan="4">
				<input type="text" class="TextBoxL txtOut" name="name" value="<?php echo $data['Channeltype']['name'];?>"></input>
				</td>
			</tr>
		</table>
	</fieldset>
	<?php echo $form->button('返回',array('type'=>'button','class'=>'backsubmit','onclick'=>'history.back(-1)'));?>  <!-- 返回上一级-->
	<?php echo $form->button('重置',array('type'=>'reset','class'=>'resetsubmit'));?>  <!-- __('reset', true)取消-->
	<?php echo $form->button('确定',array('type'=>'submit','class'=>'oksubmit'));?>  <!-- __('Add', true)增加-->
<?php echo $form->end();?>
</div>
